package com.jrx.anytxn.common.exception;

import com.jrx.anytxn.common.data.TxnRespCode;

/**
 * 业务异常错误  对应 http code 500
 * 在业务处理过程中抛出的异常，errCode 对应业务错误码  errMsg 对应错误描述
 *
 * @author zwg
 * @date 2018-09-05 14:29
 **/

public class TxnBizException extends TxnException {

    public TxnBizException(int errCode) {
        super(errCode);
    }

    public TxnBizException(String errMsg) {
        super(errMsg);
    }

    public TxnBizException(int errCode, String errMsg) {
        super(errCode, errMsg);
    }

    public TxnBizException(TxnRespCode respCode){
        super(respCode.getCode(), respCode.getMsg());
    }

}
